package com.argrace.smart.util;

import android.util.Log;
import android.widget.Toast;

import com.alibaba.fastjson.JSONObject;
import com.aliyun.alink.business.alink.ALinkBusinessEx;
import com.aliyun.alink.business.mtop.MTopResponse;
import com.aliyun.alink.business.mtop.MTopResponseData;
import com.aliyun.alink.sdk.net.anet.api.AError;
import com.aliyun.alink.sdk.net.anet.api.transitorynet.TransitoryRequest;
import com.aliyun.alink.sdk.net.anet.api.transitorynet.TransitoryResponse;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Locale;

/**
 * Created by argrace_dev_1 on 2018/1/30.
 */

public class AlinkHttpUtil {
    public static void AlinkHttpRequest(String method, HashMap<String, Object> params, ALinkBusinessEx.IListener listener) {
        TransitoryRequest transitoryRequest = new TransitoryRequest();
        transitoryRequest.setMethod(method);
        transitoryRequest.setParams(params);
        ALinkBusinessEx biz = new ALinkBusinessEx();
        biz.request(transitoryRequest, listener);
    }
}
